﻿using System;
using PetaPoco;

namespace BrnMall.Manager.Domain.Product
{
    /// <summary>
    /// 产品预约
    /// </summary>
    [TableName("bma_productappoint")]
    [PrimaryKey("appointid")]
    public class ProductAppoint
    {
        public int AppointId { get; set; }
        public int StoreId { get; set; }
        public int Uid { get; set; }
        public DateTime ApplyTime { get; set; }
        public int Pid { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string PName { get; set; }
        /// <summary>
        /// 产品图片
        /// </summary>
        public string PShowImg { get; set; }

        /// <summary>
        /// 预约状态0，待确认，1：已取消，2：已确认，3：被拒绝
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Deleted { get; set; }

        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 预约类型0：商品预约，1：餐位预约
        /// </summary>
        public int AppointType { get; set; } = 0;
        /// <summary>
        /// 餐位类型ID
        /// </summary>
        public int DiningTableTypeId { get; set; } = 0;
        /// <summary>
        /// 餐位类型ID
        /// </summary>
        public string DiningTableTypeName { get; set; } = "";
        /// <summary>
        /// 就餐人数
        /// </summary>
        public string DiningTableUserTotal { get; set; } = "";
        public ProductAppoint()
        {
            Uid = Pid = Status = StoreId=0;
            ApplyTime=CreatedTime= DateTime.Now;
            PName = PShowImg = Remark =RealName=Phone= "";
            Deleted = false;
        }
    }
}
